package cn.cfoodc.sharding.service.impl;

import cn.cfoodc.sharding.domain.En;
import cn.cfoodc.sharding.domain.Encryptor;
import cn.cfoodc.sharding.mapper.EnMapper;
import cn.cfoodc.sharding.mapper.EncryptorMapper;
import cn.cfoodc.sharding.service.EnService;
import cn.cfoodc.sharding.service.EncryptorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EnServiceImpl implements EnService {

    private EnMapper enMapper;
    @Autowired
    public EnServiceImpl(EnMapper enMapper){
        this.enMapper=enMapper;
    }



    @Override
    public int insert(En en) {
        return enMapper.insert(en);
    }

    @Override
    public List<En> selectAll() {
        return enMapper.selectAll();
    }


}
